//
// Created by walljiang on 2017/08/22.
//
#include <ffaudio.h>
#include "include/native-lib.h"

JNI(jstring,helloJni)(JNIEnv *env,jobject obj){
return env->NewStringUTF("哈哈哈，这是jni23");
}

JNI(jint,audioCut)(JNIEnv *env, jobject type,jstring filePath,jlong startPosition,jlong endPosition){
    const char* _filePath = env->GetStringUTFChars(filePath, false);
    env->ReleaseStringUTFChars(filePath,_filePath);
    return audioCut(_filePath,startPosition,endPosition);
}